<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专家核增详情列表')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row" id="hezengdetail">

            <!--登录信息-->
            <input name="userid" th:value="${session.userid}" type="hidden" id="userid">
            <input name="username" th:value="${session.username}" type="hidden" id="username">
            <input name="deptid" th:value="${session.deptid}" type="hidden" id="deptid">

            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>专家名称：</label>
                                <input type="text" name="zhuanjiamingcheng" v-model="zhuanjiamingcheng"/>
                            </li>
                            <li style="width:300px;">
                                <label>变动类型：</label>
                                <select name="biandongleixing" th:with="type=${@dict.getType('sys_zhuanjiazhuangtai')}" v-model="biandongleixing" class="form-control" type="text">
                                    <option value="8">人事关系转出</option>
                                </select>
                            </li>
                            <li>
                                <label>变动日期：</label>
                                <input type="text" class="time-input" placeholder="请选择变动日期" name="biandongriqi" v-model="biandongriqi"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" @click="bindZhuanliList"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="col-sm-12 select-table table-striped">

                <div class="btn-group-sm" id="toolbar" role="group" style="height: 50px;line-height: 50px;">
                    <a class="btn btn-success btn-md" @click="toAdd()">
                        <i class="fa fa-plus"></i> 添加
                    </a>
                </div>

                <table class="table table-hover table-primary table-striped">
                    <thead>
                        <tr>
                            <th style="text-align: center; vertical-align: middle;">序号</th>
                            <th style="text-align: center; vertical-align: middle;">专家姓名</th>
                            <th style="text-align: center; vertical-align: middle;">证件类型</th>
                            <th style="text-align: center; vertical-align: middle;">证件号码</th>
                            <th style="text-align: center; vertical-align: middle;">入选年份</th>
                            <th style="text-align: center; vertical-align: middle;">出生日期</th>
                            <th style="text-align: center; vertical-align: middle;">转自单位</th>
                            <th style="text-align: center; vertical-align: middle;">转至单位</th>
                            <th style="text-align: center; vertical-align: middle;">变动日期</th>
                            <th style="text-align: center; vertical-align: middle;">说明</th>
                            <th style="text-align: center; vertical-align: middle;">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-for="(biandongitem,index) in biandonglist"  v-if="biandonglist.length > 0">
                            <td style="vertical-align: middle; text-align: center;" v-text="index+1"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.zhuanjiamingcheng"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.zhengjianleixing_text"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.zhengjianhaoma"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.ruxuannianfen"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.chushengriqi"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.zhuanzidanweimingcheng"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.zhuanzhidanweimingcheng"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.biandongriqi"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="biandongitem.shuoming"></td>
                            <td style="vertical-align: middle; text-align: center;" v-text="">
                                <button v-if="biandongitem.isqidong==0||biandongitem.isqidong==null" class="btn btn-warning btn-rounded btn-md" @click="toModify(biandongitem.id)">修改</button>
                                <button v-if="biandongitem.isqidong==0||biandongitem.isqidong==null" class="btn btn-danger btn-rounded btn-md" @click="Delete(biandongitem.id)">删除</button>
                                <button v-if="biandongitem.isqidong==0||biandongitem.isqidong==null" class="btn btn-success btn-rounded btn-md" @click="Submit(biandongitem.id)">提交</button>
                                <button v-if="biandongitem.isqidong==1" class="btn btn-default btn-rounded btn-md" @click="showShenhejiluModel(biandongitem.shiwuid)">审核进度</button>
                            </td>
                        </tr>
                    <tr v-if="biandonglist.length == 0">
                        <td style="text-align: center; vertical-align: middle" colspan="11">查无数据</td>
                    </tr>
                    </tbody>
                </table>

            </div>

            <!-- 编辑专家变动信息 -->
            <div th:replace="system/zhuanjiabiandongdetail/modal_edit::biandong_edit"></div>
            <!--  审核记录-->
            <div th:replace="system/renwu/modal_shenhejilu::shenhejilu"></div>

        </div>
    </div>
    <th:block th:include="include :: footer" />
     <th:block th:include="include :: datetimepicker-js" />
     <script th:src="@{/js/system/zhuanli/customzhuanli.js?v=1.0}"></script>

</body>
</html>